{include file='admin/header.html'}

<form class="layui-form" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.comment_author}</label>
        <div class="layui-input-inline">
            <input type="text" name="author" value="{$row.author}" required lay-verify="required" placeholder="{$tran.input_comment_author}"
                autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.comment_content}</label>
        <div class="layui-input-block">
            <textarea name="comment" placeholder="" required lay-verify="required"
                class="layui-textarea editor">{$row.comment}</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.sort}</label>
        <div class="layui-input-inline">
            <input type="number" name="sort" value="{$row.sort}" required lay-verify="required|number"
                placeholder="{$tran.input_sort}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.status}</label>
        <div class="layui-input-inline">
            <select name="status" lay-verify="required">
                <option value="">{$tran.choose}</option>
                <option value="0" {if $row.status==0} selected{/if}>{$tran.normal}</option>
                <option value="1" {if $row.status==1} selected{/if}>{$tran.pending}</option>
                <option value="2" {if $row.status==2} selected{/if}>{$tran.spam_comment}</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" name="id" value="{$row.id}">
            <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{$tran.save}</button>
            <button type="reset" class="layui-btn layui-btn-primary">{$tran.reset}</button>
        </div>
    </div>
</form>

{include file='admin/inc/form.html'}

{include file='admin/footer.html'}